package com.aftersale.demo.service.impl;

import com.aftersale.demo.mapper.AdminUserMapper;
import com.aftersale.demo.pojo.AdminUser;
import com.aftersale.demo.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminUserServiceImpl implements AdminUserService {

    @Autowired
    private AdminUserMapper adminUserMapper;

    @Override
    public Integer login(String username, String password) {
        return adminUserMapper.getInfo(username,password);
    }
    @Override
    public void register(String username, String password) {
        adminUserMapper.register(username,password);
    }
}
